#ifndef MY_CALCULATOR_H
#define MY_CALCULATOR_H

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QToolButton>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>

class my_calculator : public QWidget
{
    Q_OBJECT
public:
    explicit my_calculator(QWidget *parent = nullptr);

    void init_calculator();

    QToolButton *qtl;
    QVBoxLayout *main_layout;

    QPushButton *btn[20];

    //QLabel *display;        // 标签控件
    QGridLayout *gridLayout; // 网格布局

    QLineEdit *display;//可输入的控件
signals:

public slots:
};

#endif // MY_CALCULATOR_H
